package com.data.core.entry;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("发送消息失败重试持久类")
@TableName("ys_message_log")
public class MessageLog implements Serializable {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("发送消息的类型 0-日志")
    private Integer mesType;

    @ApiModelProperty("消息队列的主题")
    private String mesTopic;

    @ApiModelProperty("消息执行结果")
    private String mesResult;


    @ApiModelProperty("创建人")
    private String created;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdDate;

    @ApiModelProperty("发送消息状态：0-成功 1-失败")
    private Integer mesStatus;

    @ApiModelProperty("发送的消息")
    private String mesBody;

    private static final long serialVersionUID = 1L;
}